package HLLib.notifiction;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;
import HLCode.HLObject;
import HLLib.base.HLString;

public class HLToDoItem extends HLLibObject {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_NOTIFICTION, HLClassManager_H.LIB_CLASS_NOTIFICTION_ToDoItem);
    }

    public int GetInt(int index) {
        switch (index) {
        case 0: {
            return year;
        }
        case 1: {
            return month;
        }
        case 2: {
            return day;
        }
        case 3: {
            return hour;
        }
        case 4: {
            return minute;
        }
        case 5: {
            return second;
        }
        }
        return 0;
    }

    public void SetInt(int index, int value) {
        switch (index) {
        case 0: {
            year = value;
            return;
        }
        case 1: {
            month = value;
            return;
        }
        case 2: {
            day = value;
            return;
        }
        case 3: {
            hour = value;
            return;
        }
        case 4: {
            minute = value;
            return;
        }
        case 5: {
            second = value;
            return;
        }
        }
    }

    public boolean GetBoolean(int index) {
        return isUserDefaultSound;
    }

    public void SetBoolean(int index, boolean value) {
        isUserDefaultSound = value;
    }

    public HLObject GetObject(int index) {
        switch (index) {
        case 0: {
            return eventName;
        }
        case 1: {
            return soundName;
        }
        }
        return null;
    }

    public void SetObject(int index, HLObject value) {
        switch (index) {
        case 0: {
            eventName = (HLString) value;
            return;
        }
        case 1: {
            soundName = (HLString) value;
            return;
        }
        }
    }

    public int year;

    public int month;

    public int day;

    public int hour;

    public int minute;

    public int second;

    public HLString eventName;

    public HLString soundName;

    public boolean isUserDefaultSound;
}
